﻿using AutoMapper;
using Traceability.Bais.API.Appliction.Command.Permissions;
using Traceability.Bais.API.Appliction.Command.Roless;
using Traceability.Bais.API.Appliction.Command.Users;
using Traceability.Common.Domain;
using Traceability.Common.Dtos;

namespace Traceability.Bais.API.Common
{
    public class AutoMapperProFile:Profile
    {
        public AutoMapperProFile()
        {
            CreateMap<Permission, PremissionDto>().ReverseMap();
            //权限添加
            CreateMap<PermissionCreateCommon, Permission>();
            //角色添加
            //CreateMap<RolesCreateCommon, Roles>();
        }
    }
}
